package com.missilike.core.config;

import com.missilike.core.domain.BaiDuMapProperties;
import com.missilike.core.domain.WechatProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class ThirdConfig {

    @Bean
    @ConfigurationProperties(prefix = "wechat")
    public WechatProperties wechatProperties(){
        return new WechatProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "baidu.map")
    public BaiDuMapProperties baiDuMapProperties(){
        return new BaiDuMapProperties();
    }


}
